function UserInfo() {
  //netTool 联网工具类 apiurl ；data需要有id，fn 回调
  this.update = function(netTool, data, fn) {
      netTool.getAjaxUrlValueBackground('capi/V2/recruitxcx/memberUser/update', data, function(res) {
          netTool.getAjaxUrlValueBackground('capi/V2/recruitxcx/memberUser/list', { id: data.id }, function(res) {
              wx.setStorageSync('userInfo', res.rows[0]);
              typeof fn == 'function' && fn(res.data);
          });
      });
  };
  this.get = function() {
      return wx.getStorageSync('userInfo');
  };
}
module.exports = UserInfo;